feat(google): add shared Drive folder filtering - #388
Merged
Conversation
prvnsmpth
commented
Jul 28, 2026
Contributor
- Let admins restrict domain-wide delegated Drive sources to selected shared drives or top-level folders before the initial sync.
- Add credential-backed folder discovery for both unsaved setup credentials and stored source credentials, with strict validation and request limits.
- Enforce selected folder scope during full and incremental syncs using cached ancestry checks while preserving index-all behavior when no filters are selected.
- Keep OAuth sources unchanged and explain that folder-level filtering currently requires domain-wide delegation.
- Add focused coverage for filter parsing, ancestry matching, preview security, and setup behavior.
prvnsmpth
force-pushed
the
feat/google-drive-path-filter
branch
from
July 28, 2026 15:51
1cdb3dd to
f62aed4
Compare
- discover shared drives and top-level folders using stored or transient DWD credentials - persist folder selections in Drive settings and apply cached ancestry filtering during sync - secure preview actions with strict validation, request limits, and focused tests
- Move pre-source actions under /api/connectors/[sourceType]/action. - Derive source type from the route while retaining strict action and credential validation. - Update Google Drive folder discovery and focused endpoint tests.
- Render Drive folder suggestions in a portal so dialogs do not clip them. - Restore source creation by using the submitted config instead of an undefined variable. - Remove the unused environment import and preserve authenticated-user narrowing.
prvnsmpth
force-pushed
the
feat/google-drive-path-filter
branch
from
July 29, 2026 08:18
6bf3c6e to
cae3912
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.